package java_DesignPattern.SixPrinciple.LawOfDemeter;

/**
 * 经纪人类
 */
public class Agent {

    private SuperStar star;
    private Company company;
    private Fans fans;

    public void setStar(SuperStar star) {
        this.star = star;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    //粉丝见面
    public void meeting(){
        System.out.println(fans.getName() + "和" + star.getName() + "在" + company.getName() + "见面");
    }

    //公司商谈
    public void business(){
        System.out.println(company.getName() + "和" + star.getName() + "在" + company.getName() + "商谈");
    }
}
